package DBLayer;

import ModelLayer.*;
import java.util.ArrayList;


public interface IFDBGunReplicas
{
	//get all gun replicas
	public ArrayList<GunReplicas> getAllGunReplicas(boolean retrieveAssociation);
	
	//get a gun replica by id
	public GunReplicas getGunReplicaByID(int id, boolean retrieveAssociation);
	
	//get gun replicas by fabric
	public ArrayList<GunReplicas> searchByFabric(String fabric, boolean retrieveAssociation);
	
	//get gun replicas by calibre
	public ArrayList<GunReplicas> searchByCalibre(float calibre, boolean retrieveAssociation);
	
	//insert a gun replica into the table
	public int insertGunReplica(GunReplicas replica) throws Exception;
	
	//update a gun replica by its id
	public int updateGunReplicaByID(GunReplicas replica);
	
	//delete a gun replica by its id
	public int deleteGunReplicaByID(int id);
}
